<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <channel>
        <title><![CDATA[<%= theCache.settings["blogTitle"] %>]]></title>
        <link><%= theCache.settings["baseURL"] %></link>
        <description><![CDATA[<%= theCache.settings["blogDescription"] %>]]></description>
        <language><%= theCache.settings["blogLanguage"] %></language>
        <copyright><![CDATA[Copyright <%= helper.getDateTimeString("YY") %>, <%= theCache.settings["blogTitle"] %>]]>
        </copyright>
        <webMaster><![CDATA[<%= theCache.settings["blogWebMasterEmail"] %> (<%= theCache.settings["blogWebMaster"] %>)]]>
        </webMaster>
        <generator>LBS v<%= blogVersion %></generator>
        <pubDate><%= helper.getDateTimeString("w, DD m YY hh:ii:ss Z", undefined, true) %></pubDate>
        <ttl>60</ttl>
        <% for(var i = 0;i < arrArticle.length;i++){
            var tArticle = ctx.service.article;
            tArticle.fill(arrArticle[i]);
        if(tArticle.mode == 1 && !tArticle.category.hidden){ %>
            <item>
                <title><![CDATA[<%= helper.HTMLEncode(tArticle.title) %>]]></title>
                <link>
                <![CDATA[<%= theCache.settings["baseURL"]+"article.asp?id="+tArticle.id %>]]></link>
                <category><![CDATA[<%= tArticle.category.name %>]]></category>
                <author><![CDATA[<%= tArticle.author %>
                    <null
                            @null.com>]]>
                </author>
                <pubDate><%= helper.getDateTimeString("w, DD m YY hh:ii:ss Z", tArticle.postTime, true) %></pubDate>
                <description><![CDATA[
                    <% if(tArticle.ubbFlags == "html"){ %>
                        <%= tArticle.content0 %>
                    <% }else{ %>
                        <%= ubb.toHTML(helper.closeUBB(helper.HTMLEncode(tArticle.content0)), tArticle.ubbFlags,
                                theCache.settings["baseURL"]) %>
                    <% } %>
                    ]]>
                </description>
                <wfw:commentRss><![CDATA[<%= theCache.settings["baseURL"]+"feed.asp?q=comment&id="+tArticle.id %>]]>
                </wfw:commentRss>
            </item>
        <% }
        } %>
    </channel>
</rss>
